package edu.eam.paii.proyecto.entidades;

import java.util.List;

import javax.persistence.*;

@Entity
/**
 * @author Hector Bedoya Ortegon
 * @author Felipe Suarez Bedoya
 * Esta entidad permite manejar toda la informacion de el Cliente.
 */
public class Cliente extends Persona {
	private String usuario;
	private String contrasena;

	private double ingresos;
	private double egresos;
	
	@OneToMany(mappedBy = "clienteSolicitudTarjetaC", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<SolicitudTarjetaCredito>solicitudeTarjetaC;
	
	@OneToMany(mappedBy = "clienteTarjetaCredito", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Tarjeta_Credito>tarjetas_Creditos ;
	
	@OneToMany(mappedBy = "clienteCuenta", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Cuenta> cuentas;
	
	@OneToMany(mappedBy = "clienteCDT", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Ahorro_CDT>ahorro_CDTs ;
	
	@OneToMany(mappedBy = "clienteSolicitud", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Solicitud_Credito>solicitudes_Creditos ;

	@OneToMany(mappedBy = "clienteCredito", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Credito> creditos;

	@OneToMany(mappedBy = "clienteTransaccion", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Transaccion> transacciones;

	@OneToMany(mappedBy = "clientePremio", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Cliente_Premio> premios;

	

}
